package com.by.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.06.14.14.12
 */
@RestController
public class ConfigController {
    @Value("${erp.db.username}")
    String username;
    @Value("${erp.db.password}")
    String password;
    @GetMapping("/getconfig")
  public Map query(){
     Map map=new HashMap();
     map.put("username",username);
     map.put("password",password);
     return map;
  }
}
